import React from 'react';
import { Radio } from 'antd';

const RadioIndex = (props, ref) => {
  let {
    value,
    onChange = () => {},
    fieldProps = {},
  } = props;
  return (
    <Radio.Group
      value={value}
      {...fieldProps}
      onChange={onChange}
    >
      {/* {options &&
        options.map((item) => (
          <Radio value={item.value} key={item.value}>
            {item.label}
          </Radio>
        ))} */}
    </Radio.Group>
  );
};

export default React.forwardRef(RadioIndex);
